package com.ajing.logextractor.filter;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public abstract class AbstractFilter {

    String pattern;
    String match;

    public AbstractFilter(String pattern, String match) {
        this.pattern = pattern;
        this.match = match;
    }

    /**
     * 过滤日志
     * @param input - 过滤的内容
     * @return true 不过滤， false 过滤
     */
    public abstract boolean filter(String input);

}
